#include <stdio.h>

int main(int argc, char *argv[])
{

    int n = 0;
    scanf("%d", &n);

    int index = 0;
    int code[100];

    if (n != 0)
    {
        while (n != 0)
        {
            int temp = n % 2;
            code[index] = temp;
            n /= 2;
            index++;
        }

        index = index - 1;

        while (index >= 0)
        {
            printf("%d", code[index]);
            index--;
        }
    }
    else
    {
        printf("0");
    }

    return 0;
}